package ebj.common.proxy;

public class HumanProxy implements IHuman {
	private Person person;

	public HumanProxy(Person person) {
		this.person = person;
	}

	@Override
	public void talk(String msg) {
		person.talk(msg);
	}

	public void talk(String msg, String songName) {
		person.talk(msg);
		this.sing(songName);
	}

	private void sing(String songName) {
		System.out.println(person.getName() + "唱歌 ：" + songName);
	}
}
